package com.pig4cloud.pig.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.order.api.dto.FollowRecord;
import com.pig4cloud.pig.order.mapper.FollowRecordMapper;
import com.pig4cloud.pig.order.service.FollowService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FollowServiceImpl extends ServiceImpl<FollowRecordMapper, FollowRecord> implements FollowService {
	@Override
	public List<FollowRecord> getByOrderId(Long orderId) {
		return baseMapper.selectByOrderId(orderId);
	}

	@Override
	public int insert(FollowRecord followRecord) {
		return baseMapper.insert(followRecord);
	}
}
